74 #define CS_XT1_TIMEOUT 50000
81 #define CS_XT2_TIMEOUT 0
88 #define CS_XT1_CRYSTAL_FREQUENCY 32768
114 WDT_A_hold(WDT_A_BASE);
117 GPIO_setAsPeripheralModuleFunctionOutputPin(
120 GPIO_SECONDARY_MODULE_FUNCTION
124 GPIO_setAsPeripheralModuleFunctionOutputPin(
127 GPIO_SECONDARY_MODULE_FUNCTION
131 GPIO_setAsPeripheralModuleFunctionInputPin(
133 GPIO_PIN6 + GPIO_PIN7,
134 GPIO_SECONDARY_MODULE_FUNCTION
144 CS_setExternalClockSource(
162 CS_clearAllOscFlagsWithTimeout(1000);
165 SFR_enableInterrupt(SFR_OSCILLATOR_FAULT_INTERRUPT);
168 __bis_SR_register(GIE);
179 #if defined(__TI_COMPILER_VERSION__) || defined(__IAR_SYSTEMS_ICC__)
180 #pragma vector=UNMI_VECTOR
182 #elif defined(__GNUC__)
183 __attribute__((interrupt(UNMI_VECTOR)))
190 status = CS_clearAllOscFlagsWithTimeout(1000);
#define CS_XT1_CRYSTAL_FREQUENCY